package com.ice.work.moment.oauth.dao.resource;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ice.work.moment.facade.user.model.Resource;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description 资源 dao
 * @Author DELL
 * @Create 2019-01-10
 * @Since 1.0.0
 */
@Repository
public class ResourceRepository extends ServiceImpl<IResourceMapper, Resource> implements IResourceRepository {


    @Override
    public List<Resource> findByUserIdAndDataStatus(Long userId, Integer dataStatus) {
        return this.baseMapper.findByUserIdAndDataStatus(userId, dataStatus);
    }
}


